export {}
const { Wechaty } = require('wechaty');

const bot = new Wechaty({
    name: 'weijun'
});

bot.on('login', './listeners/login')

bot.on('loginOut', async () => {
    console.log('loginOut');
});

bot.on('message', './listeners/message')

bot.on('scan', './listeners/scan')

bot.start()
    .then(() => console.log('登陆微信'))
    .catch((e: any) => console.log(`报错: ${e}`))

module.exports = bot;
